type EventName = `on${Capitalize<string>}`

type Method = 'GET' | 'POST' | 'DELETE' | 'PUT';

type Endpoint = `/api/${string}`;

type Route = `${Method} ${Endpoint}`;

function makeRoute(route: Route) {
    return route;
}

function makeEventName(eventName: EventName) {
    return eventName;
}

const route = makeRoute('GET /api/users');
console.log(route)

const e = makeEventName('onClick');
console.log(e)
